package edu.uoc.tdp.client.pantalles;

import java.awt.GridBagLayout;
import javax.swing.JPanel;
import java.awt.Dimension;
import javax.swing.JLabel;
import java.awt.Rectangle;
import javax.swing.JTextField;
import javax.swing.JTextArea;
import javax.swing.JList;
import javax.swing.JButton;
import java.awt.ComponentOrientation;
import javax.swing.JCheckBox;

public class PantallaTipusEventAlta extends JPanel {

	private static final long serialVersionUID = 1L;
	private JLabel jLabelNom = null;
	private JTextField jTextFieldNom = null;
	private JLabel jLabelDescripcio = null;
	private JTextArea jTextAreaDescripcio = null;
	private JLabel jLabelRols = null;
	private JList jListRolsPermitits = null;
	private JButton jButtonAceptar = null;
	private JButton jButtonCancelar = null;
	private JCheckBox jCheckBoxActiu = null;
	private JLabel jLabelMotiuBaixa = null;
	private JTextField jTextFieldMotiu = null;

	/**
	 * This is the default constructor
	 */
	public PantallaTipusEventAlta() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		jLabelMotiuBaixa = new JLabel();
		jLabelMotiuBaixa.setBounds(new Rectangle(23, 287, 103, 16));
		jLabelMotiuBaixa.setText("Motivo de baja");
		jLabelRols = new JLabel();
		jLabelRols.setBounds(new Rectangle(12, 135, 111, 16));
		jLabelRols.setText("Roles permitidos");
		jLabelDescripcio = new JLabel();
		jLabelDescripcio.setBounds(new Rectangle(29, 56, 82, 16));
		jLabelDescripcio.setText("Descripcion");
		jLabelNom = new JLabel();
		jLabelNom.setBounds(new Rectangle(27, 21, 89, 16));
		jLabelNom.setText("Tipo de Evento");
		this.setSize(450, 398);
		this.setLayout(null);
		this.add(jLabelNom, null);
		this.add(getJTextFieldNom(), null);
		this.add(jLabelDescripcio, null);
		this.add(getJTextAreaDescripcio(), null);
		this.add(jLabelRols, null);
		this.add(getJListRolsPermitits(), null);
		this.add(getJButtonAceptar(), null);
		this.add(getJButtonCancelar(), null);
		this.add(getJCheckBoxActiu(), null);
		this.add(jLabelMotiuBaixa, null);
		this.add(getJTextFieldMotiu(), null);
	}

	/**
	 * This method initializes jTextFieldNom	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldNom() {
		if (jTextFieldNom == null) {
			jTextFieldNom = new JTextField();
			jTextFieldNom.setBounds(new Rectangle(119, 22, 294, 20));
		}
		return jTextFieldNom;
	}

	/**
	 * This method initializes jTextAreaDescripcio	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getJTextAreaDescripcio() {
		if (jTextAreaDescripcio == null) {
			jTextAreaDescripcio = new JTextArea();
			jTextAreaDescripcio.setBounds(new Rectangle(121, 56, 284, 62));
			jTextAreaDescripcio.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
		}
		return jTextAreaDescripcio;
	}

	/**
	 * This method initializes jListRolsPermitits	
	 * 	
	 * @return javax.swing.JList	
	 */
	private JList getJListRolsPermitits() {
		if (jListRolsPermitits == null) {
			jListRolsPermitits = new JList();
			jListRolsPermitits.setBounds(new Rectangle(124, 130, 219, 149));
		}
		return jListRolsPermitits;
	}

	/**
	 * This method initializes jButtonAceptar	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonAceptar() {
		if (jButtonAceptar == null) {
			jButtonAceptar = new JButton();
			jButtonAceptar.setText("Aceptar");
			jButtonAceptar.setBounds(new Rectangle(258, 339, 83, 28));
		}
		return jButtonAceptar;
	}

	/**
	 * This method initializes jButtonCancelar	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonCancelar() {
		if (jButtonCancelar == null) {
			jButtonCancelar = new JButton();
			jButtonCancelar.setBounds(new Rectangle(354, 341, 86, 26));
			jButtonCancelar.setText("Cancelar");
		}
		return jButtonCancelar;
	}

	/**
	 * This method initializes jCheckBoxActiu	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBoxActiu() {
		if (jCheckBoxActiu == null) {
			jCheckBoxActiu = new JCheckBox();
			jCheckBoxActiu.setBounds(new Rectangle(359, 287, 76, 21));
			jCheckBoxActiu.setSelected(true);
			jCheckBoxActiu.setText("Activo");
		}
		return jCheckBoxActiu;
	}

	/**
	 * This method initializes jTextFieldMotiu	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldMotiu() {
		if (jTextFieldMotiu == null) {
			jTextFieldMotiu = new JTextField();
			jTextFieldMotiu.setBounds(new Rectangle(128, 287, 225, 20));
			jTextFieldMotiu.setEditable(false);
		}
		return jTextFieldMotiu;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
